package com.amsp.oa.oademo.vo;

import lombok.Data;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
public class TrainingSignVO {
    private Long id;
    private String trainer;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date trainingDate;
    private Integer totalStudents;
    private Integer qualifiedStudents;
    private BigDecimal passRate;
    private List<TrainingStudentVO> students;

    @Data
    public static class TrainingStudentVO {
        private Long id;
        private Long trainingId;
        private String studentName;
        private Boolean signIn;
        private Integer score;
    }
}